<h3>Domains registered under you </h3>
<form class="frm" method="post" action="<?php echo $_SERVER['PHP_SELF']; ?>" name="frmlistdomains" id="frmlistdomains">		
<input type="hidden" value="" name="mode" id="mode" />
<input type="hidden" value="" name="domain_id" id="domain_id" />
<table cellpadding="0" cellspacing="0" border="0" width="95%" class="tbl">
	<tr>
		<th width="5%">ID</th>
		<th width="35%">Domain</th>
		<th width="35%">Domain Code</th>
		<th width="15%">Registered</th>
		<th width="10%">Actions</th>
	</tr>
	<?php if(count($actions['all_domains']) > 0){ 
			foreach($actions['all_domains'] as $key => $val){
	?>
	<tr>
		<td><?php echo $val['d_id']; ?></td>
		<td><a title="Check analytics for domain <?php echo $val['d_name']; ?>" class="open_data" href="analyze_data.php?id=<?php echo $val['d_id']; ?>&amp;set_value=true">&nbsp;&nbsp;&nbsp;&nbsp;<?php echo $val['d_name']; ?></a></td>
		<td><?php echo $val['c_code']; ?></td>
		<td><?php echo date('jS, M Y', strtotime($val['d_created'])); ?></td>
		<td>
		<a href="javascript:;" onclick="javascript:delete_domain('<?php echo $val['d_id']; ?>','<?php echo $val['d_name']; ?>','frmlistdomains');" title="Permenantly delete domain: <?php echo $val['d_name']; ?>">
			<img src="images/action_delete.png" title="Permenantly delete domain: <?php echo $val['d_name']; ?>" alt="Permenantly delete domain: <?php echo $val['d_name']; ?>" border="0" height="16" width="16" />
		</a>
		<a title="Download web code for domain: <?php echo $val['d_name']; ?>" href="javascript:;" onclick="open_pop_up('<?php echo $proj_config['site_url'].'pw_tracker.php?id='.$val['d_id']; ?>',800,400)"><img src="images/dwl_ark2.png" title="Download web code for domain: <?php echo $val['d_name']; ?>" alt="Download web code for domain: <?php echo $val['d_name']; ?>" border="0" height="16" width="16" />
		</a>
		<a title="Reset data for domain: <?php echo $val['d_name']; ?>" href="javascript:;" onclick="reset_domain('<?php echo $val['d_id']; ?>','<?php echo $val['d_name']; ?>','frmlistdomains');"><img src="images/recycle.png" title="Reset data for domain: <?php echo $val['d_name']; ?>" alt="Reset data for domain: <?php echo $val['d_name']; ?>" border="0" height="16" width="16" />
		</a>
		</td>
	</tr>			
	<?php  	}
		}else{ ?>
	<tr>
		<td colspan="5">
			Sorry, no domains are registered under you.
		</td>
	</tr>
	<?php } ?>
</table>
<br/>
<p>
<input title="Click here for SEO Recommendations" type="button" name="btnseo" id="btnseo" class="btnd seo_btn" onclick="javascript:handle_redirect('<?php echo $proj_config['site_url'].'seo_crawl.php'; ?>');" />
</p>
</form>
<br/>
<hr/>